package org.raymond.icloud.common.starter.autoconfiguration;

import cn.hutool.crypto.asymmetric.RSA;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.argon2.Argon2PasswordEncoder;

@Configuration
public class SecurityCongiuration {

    @Bean
    public Argon2PasswordEncoder argon2PasswordEncoder(){
        return new Argon2PasswordEncoder();
    }

    @Bean
    public RSA rsa(){
        RSA rsa = new RSA();
        return rsa;
    }
}
